﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Reflection;

namespace SCOSub
{
    public partial class About : Form
    {
        public delegate void SetMainFormTopMostHandle(bool topmost);
        public event SetMainFormTopMostHandle SetMainFormTopMost;//设置MainForm的TopMost

        public About()
        {
            InitializeComponent();
            this.TopMost = Const.DoTopMost;
        }
        private void button1_Click(object sender, EventArgs e)
        {
            Close();
        }
        private void panel1_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            Process100ms p = new Process100ms();
            this.TopMost = false;
            p.SetFormTopMostEvent += new Process100ms.SetFormTopMostEventHandel(p_SetFormTopMostEvent);
            p.ShowDialog();

        }
        private void p_SetFormTopMostEvent(bool topmost)
        {
            this.TopMost = topmost;
        }
        private void About_FormClosing(object sender, FormClosingEventArgs e)
        {
            SetMainFormTopMost(true);
        }



    }
}
